package com.dpj.seckill.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/demo")
public class DemoContoller {

        @RequestMapping("/hello")
        public String hello(Model model) {
            model.addAttribute("name", "xxxx");
            return "hello";
        }
}
